// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#include "wtkpc.h"

#include "wtk/MenuItem.h"
#include "wtk/Menu.h"

namespace wtk
{
	MenuItem::MenuItem(Menu *ownerMenu, const std::wstring &title, Separation separation)
		: title(title)
	{
		if (separation == Separate) {
			ownerMenu->items.push_back(NULL);
		}
		ownerMenu->items.push_back(this);
	}
}
